﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Web;
using RESTServices.Dominio;

namespace RESTServices
{
    [ServiceContract]
    public interface ICarteleras
    {
        [OperationContract]
        [System.ServiceModel.Web.WebInvoke(Method = "GET", UriTemplate = "Carteleras/", ResponseFormat = WebMessageFormat.Json)]
         List<Cartelera> ListarCartelera();

        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "Cartelera", ResponseFormat = WebMessageFormat.Json)]
        Cartelera CrearCartelera(CarteleraLigth carteleraAcrear);
    }
}
